/**
 * Created by Administrator on 2017/9/20.
 */

var html5mode = false;
var environmental = "test";
var deviceurl = "http://tm.test.shuwang.info/wmcallplatform/";
var merchanturl = "http://tm.test.shuwang.info/wmmerchant_info/";
var news_view_url = 'view/';

// var shopid_url=
function doClient(sucessfun, shopid) {
    var client = mqtt.connect('ws://120.27.192.219:3000');
    client.subscribe("/2/4/" + shopid);
    client.on("message", function (topic, payload) {
        sucessfun(topic, payload);
    });
    client.publish("pubtest", "hello world!");
}